package cn.iocoder.yudao.module.train.controller.wechat.pay;


import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;

@Tag(name = "小程序接口 - 支付")
@RestController
@RequestMapping("/wechat-api/pay")
public class WechatPayController {

    /**
     * 调起支付
     */
    @PostMapping("/create")
    @Operation(summary = "调起支付")
    @Transactional
    public CommonResult<Boolean> create(@RequestBody List<String> orderSns) throws Exception {
        return success(true,"支付成功");
    }
}
